package com.ruoyi.system.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.AppDynamicTimeline;

/**
 * 时间轴Service接口
 *
 * @author ruoyi
 * @date 2023-02-28
 */
public interface IAppDynamicTimelineService extends IService<AppDynamicTimeline> {
    /**
     * 查询时间轴
     *
     * @param id 时间轴主键
     * @return 时间轴
     */
    public AppDynamicTimeline selectAppDynamicTimelineById(Long id);

    /**
     * 查询时间轴列表
     *
     * @param appDynamicTimeline 时间轴
     * @return 时间轴集合
     */
    public List<AppDynamicTimeline> selectAppDynamicTimelineList(AppDynamicTimeline appDynamicTimeline);

    /**
     * 新增时间轴
     *
     * @param appDynamicTimeline 时间轴
     * @return 结果
     */
    public int insertAppDynamicTimeline(AppDynamicTimeline appDynamicTimeline);

    /**
     * 修改时间轴
     *
     * @param appDynamicTimeline 时间轴
     * @return 结果
     */
    public int updateAppDynamicTimeline(AppDynamicTimeline appDynamicTimeline);

    /**
     * 批量删除时间轴
     *
     * @param ids 需要删除的时间轴主键集合
     * @return 结果
     */
    public int deleteAppDynamicTimelineByIds(Long[] ids);

    /**
     * 删除时间轴信息
     *
     * @param id 时间轴主键
     * @return 结果
     */
    public int deleteAppDynamicTimelineById(Long id);

    int countByUserIdAndIsRead(AppDynamicTimeline appDynamicTimeline);
}
